let person = {username: '王路飞', age: 19}
let someone1 = person //引用传递
console.log(person)
console.log(someone1)
someone1.username = '乔巴'
//引用传递 一起变
console.log(person)
console.log(someone1)
console.log('------------------------------------------------------')

let person2 = {...person}
console.log(person)
console.log(person2)
person2.username = '哈哈哈'
// 值传递,指向两块独立的内存区域,person不变
console.log(person)
console.log(person2)


